<?php
    session_start();
    include('top.php');
    include('sql.php');
    $box_sql = "select * from speciality";
    $box_result = $link->query($box_sql);
?>
    <div class="home-body">
        <?php include('info.php'); ?>
            <div class="home-container">
                <div class="home-side-by-side-no">1.选择招生对象</div>
                <div class="home-side-by-side-no">2.填写个人信息</div>
                <div class="home-side-by-side-yes">3.选择专业</div>
                <div class="home-side-by-side-no">4.报名确认</div>
            </div>

            <div class="home-container-body">
                <div class="home-side-by-side-start" style="width: 300px;">
                    <h2 class="home-title">选择专业</h2>
                    <div>
                        <form method="post" action="result-home.php">
                            <div id="tableContainer" class="table-container">
                                <table width="100%">
                                    <tr>
                                        <th colspan="9" class="select-title">
                                            <span style="padding-left: 6px;">专业列表（第二学士学位仅可选择1个专业）</span>
                                        </th>
                                    </tr>
                                    <tr>
                                        <th class="select-th">专业序号</th>
                                        <th class="select-th">招生专业</th>
                                        <th class="select-th">门类、专业类</th>
                                        <th class="select-th">学位授予门类</th>
                                        <th class="select-th">拟招生人数</th>
                                        <th class="select-th">培养院系</th>
                                        <th class="select-th">学制/年</th>
                                        <th class="select-th">学费/年</th>
                                        <th class="select-th">选择</th>
                                    </tr>
                                    <?php while($box_row = mysqli_fetch_array($box_result)){ ?>
                                        <tr onmouseover="this.bgColor = '#fccdcd';" onmouseout="this.bgColor = '#fff';">
                                            <td class="select-td">
                                                <?php echo $box_row['id']; ?>
                                            </td>
                                            <td class="select-td">
                                                <?php echo $box_row['name']; ?>
                                            </td>
                                            <td class="select-td">
                                                <?php echo $box_row['mlzyl']; ?>
                                            </td>
                                            <td class="select-td">
                                                <?php echo $box_row['xwsyml']; ?>
                                            </td>
                                            <td class="select-td">
                                                <?php echo $box_row['total']; ?>
                                            </td>
                                            <td class="select-td">
                                                <?php echo $box_row['school']; ?>
                                            </td>
                                            <td class="select-td">
                                                <?php echo $box_row['years']; ?>
                                            </td>
                                            <td class="select-td">
                                                <?php echo $box_row['price']; ?>
                                            </td>
                                            <td class="select-td">
                                                <input type="radio" name="specialityid" value="<?php echo $box_row['id']; ?>">
                                            </td>
                                        </tr>
                                        <?php } ?>
                                </table>
                            </div>
                            <p style="margin-top: 24px; text-align: center;">
                                <?php if (empty($row['photo'] & $row['cardz'] & $row['cardf'] & $row['address'] & $row['school'] & $row['bkzy'] & $row['zylb'] & $row['years'] & $row['xlzs'] & $row['xwzs'] & $row['xlzsphoto'] & $row['xwzsphoto'] )) {} else { if (empty($web_info_row['reg'])) { echo "已停止操作"; } else { ?>
                                    <input class="my-home-submit" type="submit" <?php if (empty($row[ 'second'])) { ?> value="确认选择"
                                    <?php } else { ?> disabled="disabled" value="您已取得成绩"
                                        <?php } ?>>
                                            <?php } } ?>
                                                <a class="star" href="my-home.php">上一步 填写信息</a>
                            </p>
                        </form>
                    </div>
                </div>
            </div>
    </div>
    <?php include('bottom.php'); ?>